package com.project.freshdelivery.entity.vo;

import lombok.Data;

/**
 * @ClassName PageModel
 * @Description 分页排序模型
 * @Author JunHan Wu
 * @Date 2022/10/29 12:06
 * @Version 1.0
 */
@Data
public class PageModel {
    private Integer pageSize = 10;
    private Integer pageCurrent = 1;
    /**
     * 数据库字段
     */
    private String sortParam;
    /**
     * asc || desc
     */
    private String sortType;

    public PageModel(Integer pageSize, Integer pageCurrent) {
        this.pageSize = pageSize;
        this.pageCurrent = pageCurrent;
    }

    public PageModel(Integer pageSize, Integer pageCurrent, String sortParam, String sortType) {
        this.pageSize = pageSize;
        this.pageCurrent = pageCurrent;
        this.sortParam = sortParam;
        this.sortType = sortType;
    }

    public PageModel() {
    }
}
